<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>个人中心</title>
    <link rel="stylesheet" href="/css/bootstrap.css" th:href="@{/css/bootstrap.css}"/>
</head>
<body class="container">
<h1>个人中心</h1>
<br><br>
<div class="with:80%">
    <table class="table table-hover">
        <thead>
            <tr>
                <th>姓名</th>
                <th th:text="${user.username}"></th>
            </tr>
        </thead>
        <thead>
            <tr>
                <th>性别</th>
                <th th:text="${user.sex}"></th>
            </tr>
        </thead>
        <thead>
            <tr>
                <th>电话</th>
                <th th:text="${user.phone}"></th>
            </tr>
        </thead>
        <thead>
            <tr>
                <th>邮箱</th>
                <th th:text="${user.mail}"></th>
            </tr>
        </thead>
    </table>
</div>
<div class="form-group">
    <div class="col-sm-2 control-label" >
        <a th:href="@{/user/toEdit(id = ${user.id})}" class="btn btn-info">修改用户信息</a>
    </div>
</div>
<div class="form-group">
    <div class="col-sm-2 control-label" >
        <a th:href="@{/user/userHomePage(username=${user.username})}" class="btn btn-info">返回</a>
    </div>
</div>
</body>
</html>